package com.luhuiguo.cms.shared.model;

import java.io.Serializable;
import java.util.Date;

public class ChannelModel implements Serializable {

    private static final long serialVersionUID = 2021846499359339453L;

    private Long id;

    private Long parent;

    private String path;

    private String name;

    private String title;

    private int rank;

    private Date created;

    private String createdBy;

    private Date lastModified;

    private String lastModifiedBy;

    public ChannelModel() {

    }

    public ChannelModel(Long parent, String path, String name, String title) {
        super();
        this.parent = parent;
        this.path = path;
        this.name = name;
        this.title = title;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParent() {
        return parent;
    }

    public void setParent(Long parent) {
        this.parent = parent;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ChannelModel [id=").append(id).append(", name=").append(name).append(", parent=")
                .append(parent).append(", path=").append(path).append(", title=").append(title).append("]");
        return builder.toString();
    }

}
